﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SistemaCruzAzul.Presentacion
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            
        }

        protected override void OnClosed(EventArgs e)
        {

            DialogResult result;

            result = MessageBox.Show(this, "Si cierra esta pantalla se cerrará la aplicación. ¿Desea continuar?", "Mensaje de Sistema", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                Application.Exit();
            }

            {
                Form2 ObjetoMenu = new Form2();
                ObjetoMenu.Visible = true;
            }

        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void ingresosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmClientes ObjetoCliente = new FrmClientes();
            ObjetoCliente.Visible = true;
        }


   

    }
}
